package cn.nubia.admin.application.query;

import cn.nubia.admin.common.query.PageQueryParam;
import cn.nubia.admin.common.utils.DateUtil;

import java.util.Date;

/**
 * Created by justin on 15/7/11.
 */
public class ClientQuery  extends PageQueryParam {

    private Integer channelId;//渠道商编号

    private Integer clientType;//客户端类型（0-通用1-定制）

    private Date publishs;

    private Date publishe;

    private String publishDateRange;

    public Integer getChannelId() {
        return channelId;
    }

    public void setChannelId(Integer channelId) {
        this.channelId = channelId;
    }

    public Integer getClientType() {
        return clientType;
    }

    public void setClientType(Integer clientType) {
        this.clientType = clientType;
    }

    public Date getPublishs() {
        return publishs;
    }

    public void setPublishs(Date publishs) {
        this.publishs = publishs;
    }

    public Date getPublishe() {
        return publishe;
    }

    public void setPublishe(Date publishe) {
        this.publishe = publishe;
    }

    public String getPublishDateRange() {
        return publishDateRange;
    }

    public void setPublishDateRange(String publishDateRange) {
        this.publishDateRange = publishDateRange;
        if (publishDateRange != null&& publishDateRange!="") {
            this.setPublishs(DateUtil.getBeginDateFromRange(publishDateRange));
            this.setPublishe(DateUtil.getEndDateFromRage(publishDateRange));
        }
    }
}
